home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.programming,comp.sys.sgi.misc,comp.lang.c
- Subject: Re: C pointer question.
- Date: 5 Apr 96 20:48:18 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.828737298@rscernix>
- References: <315BFDBB.773C@wight.hursley.ibm.com> <31616BAF.5BAB@datalytics.com> <3162659B.6201@wight.hursley.ibm.com> <4ju6c5INN2ee@keats.ugrad.cs.ubc.ca> <4k1jti$igm@sun001.spd.dsccc.com>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <4k1jti$igm@sun001.spd.dsccc.com> jmccarty@sun1307.spd.dsccc.com (Mike McCarty) writes:
-
- >In article <4ju6c5INN2ee@keats.ugrad.cs.ubc.ca>,
- >Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
- >)In article <3162659B.6201@wight.hursley.ibm.com>,
- >)Max Waterman <dwater@wight.hursley.ibm.com> wrote:
- >)>Ie what are the arguments for :
- >)>
- >)>char name1,
- >)> name2,
- >)> name3;
- >)>
- >)>over :
- >)>
- >)>char name1;
- >)>char name2;
- >)>char name3;
- >)>
- >)>?
- >)>
- >)>Aren't they identical?
- >)>
- >)>Any compiler boffs out there know about this?
- >)
- >)These are identical. But if you put too many declarators onto one declaration
-
- >They are not guaranteed to be identical. I haven't seen anything in the
- >standard that says that the same program must be produced by these
- >differing sources. I have, in fact, used compilers which -did- produce
- >different programs depending on such declarations.
-
- From the C language point of view, the two versions _are_ identical.
-
- The standard doesn't require that the same compiler generates the same
- code when processing the same translation unit, so your point is moot.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-